.control-buttons {
    position: relative;
    display: grid;
    width: 30%;
    grid-template-columns: 10% auto auto auto auto 10%;
    grid-template-rows: auto auto auto auto auto;
    justify-content: space-between;
    align-items: center;
    vertical-align: baseline;
}

.control-buttons .mat-icon {
    vertical-align: baseline;
}

.main {
    grid-area: 1 / 2 / 5 / 6;
}

.btn-fullscreen {
    grid-row: 5;
    grid-column: 6;
}

.btn-streaming {
    grid-row: 1;
    grid-column: 6;
}

.btn-codecs {
    grid-row: 2;
    grid-column: 6;
}

.btn-recording {
    grid-row: 3;
    grid-column: 6;
}

.btn-led {
    grid-row: 1;
    grid-column: 1;
}

.btn-led-intensity {
    grid-row: 2;
    grid-column: 1;
    justify-self: stretch;
}

.btn-fan {
    grid-row: 5;
    grid-column: 1;
}

@media (orientation: portrait) {
    .streaming-video {
        width: 100%;
    }

    div:fullscreen .fullscreen {
        margin-left: 5%;
    }
}

@media (orientation: landscape) {
    .streaming-video {
        position: relative;
        height: 100%;
        text-align: center;
    }

    div:fullscreen .fullscreen {
        position: absolute;
        top: 0px;
        width: 100%;
        height: 100%;
        justify-items: center;
    }

    div:fullscreen .btn-led-intensity {
        grid-row: 2 / 4;
        grid-column: 1;
        justify-self: center;
    }
}

.control-panel {
    position: relative;
    width: 100%;
    display: inline-block;
}

.spinner {
    position: absolute;
    top: 25%;
    left: 25%;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.blink {
    color: red;
    animation: blink 1s linear infinite;
}